package com.mrd.modules.quartz.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mrd.modules.quartz.dao.SysJobDao;

@Service("sysJobService")
public class SysJobServiceImpl implements SysJobService {
  @Autowired
  private SysJobDao sysJobDao;

  @Override
  public SysJobEntity queryObject(Integer jobId) {
    return sysJobDao.queryObject(jobId);
  }

  @Override
  public List<SysJobEntity> queryList(Map<String, Object> map) {
    return sysJobDao.queryList(map);
  }

  @Override
  public int queryTotal(Map<String, Object> map) {
    return sysJobDao.queryTotal(map);
  }

  @Override
  public void save(SysJobEntity sysJob) {
    sysJobDao.save(sysJob);
  }

  @Override
  public void update(SysJobEntity sysJob) {
    sysJobDao.update(sysJob);
  }

  @Override
  public void delete(Integer jobId) {
    sysJobDao.delete(jobId);
  }

  @Override
  public void deleteBatch(Integer[] jobIds) {
    sysJobDao.deleteBatch(jobIds);
  }

  @Override
  public List<SysJobEntity> queryListByEntity(SysJobEntity sysJob) {
    return sysJobDao.queryListByEntity(sysJob);
  }
}
